/*
 * Class: StatusAdapter
 * Created by: Mary Joy Pascual
 * Date Created: 06/16/2014
 * Company: Netsuite
*/
package com.netsuite.adapter;

import com.netsuite.logger.LoggerImp;
import com.netsuite.pojo.StatusPOJO;
import com.netsuite.webservices.lists.relationships_2014_1.CustomerStatus;

public class StatusAdapter {
	
	private static String CLASS_NAME = StatusAdapter.class.getName();

	public static StatusPOJO setStatus (CustomerStatus custStatus){
		
		LoggerImp.startLog(CLASS_NAME, "setSubsidiary() - CustomerStatus to StatusPOJO");
		
		StatusPOJO statPojo = new StatusPOJO();
		statPojo.setStatusId(custStatus.getInternalId());
		statPojo.setStatusName(custStatus.getName());
		statPojo.setStatusStage(custStatus.getStage().getValue());
		
		LoggerImp.endLog(CLASS_NAME, "setSubsidiary() - CustomerStatus to StatusPOJO");
		
		return statPojo;
	
	}
}
